package virtualReader;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertyClass {
	private static PropertyClass instance;
	private FileInputStream fi;
	private Properties properties;
	
	private PropertyClass(){
		 properties = new Properties();
		try {
		//	System.out.println(this.getClass().get);
			 fi = new FileInputStream("src/test/java/conf/conf.properties");
		} catch (FileNotFoundException e1) {
			e1.printStackTrace();
		}
		try {
			properties.load(fi);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

	public static PropertyClass getInstance(){
		if(instance == null){
			instance = new PropertyClass();
		}
		return instance;
		
	}
	
	public Properties getProperties() {
		return properties;
	}



}
